package com.yuanfeng.goods.controller;

import com.yuanfeng.commoms.util.ResponseResult;
import com.yuanfeng.goods.dto.FoodsExhibitionHallListDTO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName GoodsFoodExhibitionHallController
 * @Description
 * @Author hyq
 * @Date 2023/7/31 13:54
 * @Version 1.0
 **/
@RestController
@RequestMapping("/goods/food/exhibitionHall")
public class GoodsFoodExhibitionHallController extends BaseController{


    /**
     * 查询特色馆详情
     *
     * @param param
     * @return
     */
    @PostMapping("/queryDetail")
    public ResponseResult queryFoodsHallDetail(@RequestBody FoodsExhibitionHallListDTO param) {
        ResponseResult result = goodsFoodExhibitionHallService.queryFoodsHallDetail(param);
        return result;
    }


    /**
     * 修改特色馆
     *
     * @param param
     * @return
     */
    @PostMapping("/update")
    public ResponseResult updateFoodsHallDetail(@RequestBody FoodsExhibitionHallListDTO param) {
        ResponseResult result = goodsFoodExhibitionHallService.updateFoodsHallDetail(param);
        return result;
    }

    /**
     * 删除特色馆
     *
     * @param param
     * @return
     */
    @PostMapping("/delete")
    public ResponseResult deleteFoodsHallDetail(@RequestBody FoodsExhibitionHallListDTO param) {
        ResponseResult result = goodsFoodExhibitionHallService.deleteFoodsHallDetail(param);
        return result;
    }


    /**
     * 查询特色馆列表
     *
     * @param param
     * @return
     */
    @PostMapping("/queryList")
    public ResponseResult queryFoodsHallList(@RequestBody FoodsExhibitionHallListDTO param) {
        ResponseResult result = goodsFoodExhibitionHallService.queryFoodsHallList(param);
        return result;
    }
}
